<template>
  <div class="nav">
    <img src="../../assets/images/epidemic.png" alt="">
<!--    <router-link to="/select" class="select">{{text}}</router-link>-->
  </div>
</template>

<script>
export default {
data(){
  return{
    text:'国内疫情'
  }
},
  created() {
  let city=localStorage.getItem('city')
    if(city){
      this.text=city
    }
  }
}
</script>

<style lang="less" scoped>
.nav{
  position: relative;
  img{
    width: 100%;
  }
  .select{
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: orange;
    padding: 5px;
    border-radius: 5px;
    color: white;
    opacity: .5;
  }
}
</style>
